package com.example.localalbum.common;

import android.content.Intent;
import android.net.Uri;

import com.centling.smartSealForPhone.application.SmartSeal;

import java.io.File;

/**
 * @author fionera
 */
public class ImageUtils {

	/** 请求相机 */
	public static final int REQUEST_CODE_GET_IMAGE_BY_CAMERA = 1;
	/** 请求裁剪 */
	public static final int REQUEST_CODE_GET_IMAGE_BY_CROP = 2;

	public static void scanPhoto(File file) {
		Intent mediaScanIntent = new Intent(
				Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
		Uri contentUri = Uri.fromFile(file);
		mediaScanIntent.setData(contentUri);
		SmartSeal.getInstance().sendBroadcast(mediaScanIntent);
	}
}
